
function BG{
	SetGraphicRect(0,0,512,512);
	SetGraphicScale(1,1);
	SetAlpha(220);
	SetGraphicAngle(0,0,BGn/2);
        SetTexture(imgBG2);
	DrawGraphic(GetX,GetY);
	SetGraphicRect(0,0,512,512);
	SetGraphicScale(1,1);
	SetAlpha(150);
	SetGraphicAngle(0,0,-BGn);
        SetTexture(imgBG1);
	DrawGraphic(GetX,GetY);
	SetGraphicRect(0,0,512,512);
	SetGraphicScale(0.5+sin(BGn)*0.2,0.5+sin(BGn)*0.2);
	SetAlpha(150);
	SetGraphicAngle(0,0,BGn);
        SetTexture(imgBG1);
	DrawGraphic(GetX,GetY);
}

